<template>
  <div>
    <header>
      <div class="bg">
        <div class="ico">
          <div>
            <span class="jt" @click="lse()">&lt;</span>
          </div>
          <div class="br">
            <span class="iconfont icon-sousuo"></span>
            <span class="iconfont icon-aixin"></span>
            <span class="iconfont icon-fenxiang"></span>
          </div>
        </div>
      </div>
      <div class="header-two">
        <div class="con2">
          <div class="tu"><img src="../../../public/lzc/s2.png" alt="" /></div>
          <div class="tu-right">
            <h3>思妍丽（中大国际店）</h3>
            <van-rate
              v-model="value"
              allow-half
              void-icon="star"
              void-color="#eee"
            />
            <span class="pf">技术4.5&nbsp;|</span>
            <span class="pf">服务4.5&nbsp;|</span>
            <span class="pf">环境4.5&nbsp;</span>

            <div>
              <p>主营：美容</p>
            </div>
          </div>
        </div>
      </div>
    </header>
    <main>
      <div class="con1">
        <div class="an">
              <span><img src="../../../public/lzc/sh2.png" /></span>
          <span class="iconfont icon-yuanquanduihao">营业执照</span>
          <span class="jt">&gt;</span>
        </div>
        <div class="type">
          <span class="t1">类型</span>
          <span class="t2">到店</span>
        </div>
        <div class="add">
          <p>
            <span class="s1">地址</span>  <span class="s3">西安市雁塔区思妍丽（高新店）郎臣4花 <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;园万豪酒店3层</span>
          </p>
          <span class="s2">距您3.3km，驾车约12分钟</span>
        </div>
      </div>

      <div class="banner">
           <img src="../../../public/lzc/sh.webp" >
      </div>
      <div class="sp">
       <h1>特色商品</h1>
       <p>全部></p>
      </div>
      <div class="er">
        <span :class="{change:index==0}" @click="changeStyle(0)">
            <router-link  to="/qub" >全部</router-link>
        </span>
        <span :class="{change:index==1}" @click="changeStyle(1)">
            <router-link  to="/pif" >皮肤</router-link>
        </span>
        <span :class="{change:index==2}" @click="changeStyle(2)">
           <router-link  to="/sp" >spa</router-link>
        </span>

      </div>
    <router-view/>
      <section></section>
    </main>
    
    <footer>
      <ul>
        <li>
             <span class="iconfont icon-shangpinfenlei"></span>
             商品分类
        </li>
        <li style="border:none">
            <span class="iconfont icon-xinxi"></span>

            联系店铺
        </li>
      </ul>
      
       
    </footer>
  </div>
</template>

<script>
import Vue from "vue";
import { Rate } from "vant";

Vue.use(Rate);
export default {
  data() {
    return {
      value: 2.5,
      index:0
    };
  },
  methods:{
    changeStyle(index){
      console.log('data里得index',this.index);
      this.index = index
    },
    lse(){
      this.$router.push("/se")
    }
  }
};
</script>

<style scoped>
@import url("../../views/lzc/font/iconfont.css");
header .bg {
  width: 100%;
  height: 3.8rem;
  background: url("../../../public/lzc/sh1.png");
  background-size: 100% 100%;
  position: relative;
}
.iconfont {
  font-size: 0.5rem;
  color: white;
}
.ico {
  display: flex;
  position: absolute;
  top: 1.2rem;
  position: relative;
}
.ico .jt {
  color: white;
  font-size: 0.5rem;
  margin-left: 0.2rem;
}
.br {
  position: absolute;
  right: 0.5rem;
}
.header-two {
  border-radius: 0.3rem;
  width: 90%;
  height: 2.2rem;
  background-color: white;
  margin: auto;
  position: absolute;
  top: 2rem;
  left: 0.4rem;
}
.con2 {
  display: flex;
  /* margin-top: 0.26rem; */
}
.con2 .tu {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  margin-top: 0.4rem;
}
.con2 .tu img {
  margin-left: 0.2rem;
  width: 100%;
  height: 100%;
}
.con2 .tu-right {
  margin-top: 0.26rem;
  margin-left: 0.2rem;
}
.con2 .tu-right {
  font-size: 0.26rem;
}
.con2 .tu-right h3 {
  margin-top: 0.2rem;
}
.con2 .tu-right .pf {
  color: grey;
}
.con2 .tu-right .yx {
  background-color: rgb(250, 191, 168);
}
.con2 .tu-right .dd {
  color: rgb(69, 179, 255);
  margin: 0.2rem 0;
  border: 1px solid rgb(69, 179, 255);
}
.con2 .tu-right .jr {
  color: rgb(255, 127, 126);
  border: 1px solid rgb(255, 127, 126);
}

main {
  height: 20rem;
  width: 90%;
  margin: auto;
  margin-top: 0.4rem;
  
}
main .con1{
    margin-top: 0.5rem;
    background-color: white;
}
main .con1 div {
  border-bottom: 0.01rem solid gainsboro;
}
main .con1  .an{
    height: 1rem;
    line-height: 1rem;
    position: relative;
}
main .con1  .an .iconfont{
    display: inline-block;
    position: absolute;
    left:2rem;
    font-size: 0.35rem;
    color: gray;
}
main .con1  .an .jt{
    position: absolute;
    right: 0.5rem;
    font-size: 0.35rem;
    color: gray;
}
main .con1  .type{
   height: 1rem;
   line-height: 1rem;
}
main .con1  .type .t1{
    color: gray;
    font-size: 0.35rem;
}
main .con1  .type .t2{
    border: 0.01rem solid rgb(203,159,127);
    color: rgb(203,159,127);
    padding: 0.05rem;
    margin-left: 0.3rem;
    font-weight: 600;
}
main .con1  .add{
  height: 1.6rem;
  border: none;
}
main .con1  .add .s1{
    color: gray;
    font-size: 0.35rem;
}
main .con1  .add .s2{
     margin-left: 1rem;
    color: gray;
    font-size: 0.25rem;
}
main .con1  .add  .s3{
     font-size: 0.3rem;
     margin-left: 0.2rem;
     
}
main .banner{
    width: 96%;
    height:2rem;
    margin: auto;
    margin-top: 0.1rem;
}
main .banner img{
    width: 100%;
    height: 100%;
}
main .sp {
     height: 0.9rem;
     line-height: 0.9rem;
    display: flex;
    justify-content: space-between;

}
main .sp h1{
    font-size: 0.4rem;
}
main .sp p{
     font-size: 0.28rem;
     color: gray;
}
main .er{
    width: 100%;
    height: 0.4rem;
    background-color: white;
    line-height: 0.4rem;
}
main .er a{
    display: inline-block;
    width: 0.6rem;
    height: 0.3rem;
    background-color: gainsboro;
    border-radius:3rem;
    margin-right:0.2rem;
    text-align: center;
    line-height: 0.3rem;
    color: gray;
}

main .er .change a{
  background-color: #c39873;
  color: white;
}
main section{
  height: 1rem;
}
footer{
  width: 100%;
  height:1rem;
  background-color:white;
  margin: auto;
  line-height: 1rem;
  position: fixed;
  bottom: 0;
  margin-top: 1rem;
 
}
footer ul{
   display: flex;
   justify-content: space-around;
}
footer li{
  text-align:center;
  width: 50%;
  border-right: 1px solid gray;
  font-size: 0.4rem;
}
footer .iconfont{
  color: #c39873;
}
</style>